package com.kingint.web.portal.base.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kingint.mbg.bas.entity.BasWorkOrderType;
import com.kingint.mbg.ser.entity.SerWorkOrder;

/**
 * <p>
 * 工单类型表 服务类
 * </p>
 *
 * @author wxh
 * @since 2020-12-21
 */
public interface WorkOrderTypeService extends IService<BasWorkOrderType> {


    /**
     * 获取对应工单的上报时间
     * @param name
     * @return
     */
    BasWorkOrderType getWorkOrderUploadTime(String name);

    /**
     *
     * @param workId
     * @return
     */
    int judgeWorkOrderIsTimeOut(Long userId,Integer workId,String name);

    //酒店ID_workId_workType_时间戳

    /**
     * 存入相关信息到redis
     * @param serWorkOrder
     * @return
     */
    void addRedisHashInfo(SerWorkOrder serWorkOrder);
}
